/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import '../../../styles/variables.less';

.search-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;

  .header-title {
    font-size: 16px;
    font-weight: 600;
  }

  .search-box {
    background-color: @grey-1;
    border: none;
    border-radius: 6px;

    .ant-input {
      background-color: @grey-1;
      padding: 8px;
      font-size: 14px;

      &:hover,
      &:focus,
      &:focus-within,
      &-focused {
        border-color: @grey-15;
        box-shadow: none;
        outline: none;
      }
    }

    &:focus-within {
      box-shadow: none;
      border-color: @grey-15;
    }
  }

  .search-results-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 12px;
    padding: 8px 0;

    .search-card {
      background-color: @grey-1;
      margin-bottom: 12px;
      border-radius: 10px;
    }
  }
}

.restore-defaults-btn {
  background-color: @blue-14;
  border: 1px solid @grey-15;
  color: @primary-heading-color;
  border-radius: 8px;
  &:hover {
    background-color: @blue-14;
    border-color: @grey-15;
    color: @primary-heading-color;
  }
}

.save-btn {
  background-color: @primary-heading-color;
  border: 1px solid @primary-heading-color;
  color: @white;
  border-radius: 8px;
  &:hover {
    background-color: @primary-heading-color;
    border-color: @primary-heading-color;
    color: @white;
  }
  &:disabled {
    background-color: @grey-100;
    border-color: @grey-300;
    color: @grey-400;
  }
}

.breadcrumb-width {
  max-width: 400px;
}
